package com.ldh.log4j;

import org.apache.log4j.Logger;

/**
 * @author LiuDehuai
 * @fileName:Log4jTest
 * @Date:2020/10/16 20:29
 */
public class Log4jTest {
    static final Logger logger=Logger.getLogger(Log4jTest.class);

    public static void main(String[] args) {
        if(logger.isTraceEnabled()){
            logger.debug("log4j trace message");
        }
        if(logger.isDebugEnabled()){
            logger.debug("log4j debug message");
        }
        if (logger.isInfoEnabled()) {
            logger.debug("log4j info message");
        }
    }
}
